import { createSSRApp } from 'vue';
import App from './App.vue';
import pinia from '@/store';
import dayjs from 'dayjs';
import weekday from 'dayjs/plugin/weekday';
import 'dayjs/locale/zh-cn';

dayjs.locale('zh-cn');
dayjs.extend(weekday);

export function createApp() {
  const app = createSSRApp(App);

  app.use(pinia);

  return {
    app
  };
}
